<?php
/**
 * Created by PhpStorm.
 * User: geyouwen
 * Date: 17/1/19
 * Time: 下午3:41
 */
return [
    //---------- Google FCM 推送的 config----------------
    'fcm_serverkey' => 'AAAA0_YevUI:APA91bETNIFLhCQK1c8fEQHSPfFbJpre27TrFE4N-CcIESiWNxLI3CMKOVfHwM2cPBCLY6FUGRRhYs-q0ZsUVwFPjZ_QPU1074xNzKRu_GUlUS881a_ZcXfst3CDzdwibYq2V-HdBhrF',
    'fcm_url'       => 'https://fcm.googleapis.com/fcm/send',
    //---------- Google FCM 推送的 config----------------
    // post share url
    'post_share_url' => env('SHARE_URL', 'https://beta.vaffle.com/') . 'wap/postdetail/',
    'news_share_url' => env('SHARE_URL', 'https://beta.vaffle.com/') . 'wap/newsdetail/',

    //举报阀值
    'report_limit' => 5,

    //默认头像
    'avatar' => [
        'm' => [
            'avatar/head_male1.jpg',
            'avatar/head_male2.jpg',
        ],
        'f' => [
            'avatar/head_female1.jpg',
            'avatar/head_female2.jpg',
        ],
        'n' => [
            'avatar/head_neutral1.jpg',
            'avatar/head_neutral2.jpg',
        ],
    ],
    /*
     *  amazon s3 config
     */
    'amazonCDN' => [
        'img' => 'https://duly5zwcucles.cloudfront.net/',
//         'img_source'   => 'http://images-omv.s3-website-us-west-2.amazonaws.com/',
        'img_source'   => 'https://duly5zwcucles.cloudfront.net/',
        'video' => 'https://d109h78eeifch3.cloudfront.net/',
//         'video_source' => 'https://s3-us-west-2.amazonaws.com/video-omv/', //源码桶
        'video_source' => 'https://d26c8a57j0sew6.cloudfront.net/', //源码桶
    ],
    'amazon' =>[
        'video' => 'https://d26c8a57j0sew6.cloudfront.net/',
    ],
//    'video_cover' => 'https://images-omv.s3-website-us-west-2.amazonaws.com/videothumbnail/',
    'video_cover' => 'https://duly5zwcucles.cloudfront.net/videothumbnail/',

    // facebook developer config
    'facebook_config' => [
        'app_id' => '1516783628365819',//'829791747158832',
        'app_secret' => 'd9fbec3e80d759ba95d1869cfd0d2558', //'59400ccb15db4f09e3fa20beca2514ad',
        'default_graph_version' => 'v3.2',
    ],

    // twitter developer config
    'twitter_config' => [
        'api_key' => 'Wlbec4X5N1BZtPOuUjksVX6Gw',
        'api_secret' => 'Y8Eor1EyNNMy0UobfOMBPGcU6O7OPvKoUvJMgh4tes7JoQek0F',
    ],

    // vk developer config
    'vk_config' => [
        'app_id' => '5987367',
        'app_secret' => 'eiH0OLmLm0Q508NyiOBS',
    ],
    'topvideo_num' => 10,
    // nickname conf
    'nickname_conf' => [
        'base' => 12531,
        'prefix' => 'vapor'
    ],
    'disabled_conf' => [
        'images'  => 'posts/dis_en.jpg',
        'video_cover' => 'posts/dis_en.jpg',
        'text' => 'Acting on a tip-off, the authority deleted the post.',
    ],
    // job report mail account
    'jobreport_mail' => '690591423@qq.com',
    'follow_number_limit' => 2000,
    'code_expire' => 1800, // 验证码有效期半小时
    'sign_board_expire' => 86400, // 验证码有效期半小时
    'ios_pre_version' => env('IOS_PRE_VERSION'),
    'thumb_size' => [
        's' => 'small/',
        'm' => 'middle/',
        'l' => 'large/',
    ],
    'thumb_size_v2' => [
        's' => '190x190/',
        'm' => '200x200/',
        'l' => 'preview/',
    ],
    //2.0系统默认头像
    'grey_avatar' => 'avatar/grey_head.png',
    'share_text_limit'  =>  500,
    'comment_text_limit'  =>  500,
    'post_text_limit'  =>  2000,
    'device_conf'  =>  ['android' => 1, 'ios' => 2, 'web' => 3],
    'oauth_type' => [
        'facebook' => 1,
        'twitter'  => 2,
        'vk'       => 3,
        'instagram'=> 4,
        'google'=> 5,
    ],
    'news_platform' => [
        1 => 'Vaffle',
        2 => 'Guidetovaping',
        3 => 'Vapinginsider',
        4 => 'Vaping360',
        5 => 'Vapingdaily',
        6 => 'Thevapingtime',
    ],
    'cache_time' =>env('CACHE_TIME',5),
    'switch_setting' => [
        'followers' => 1,
        'attention' => 2,
        'like' => 3,
        'comment' => 4,
        'sound' => 5,
    ],
    'ins_account' => [
        'nickchrome80',
        'bigsilkyhurricane',
        'vapecentral90',
        'armvape',
        'thebeardvapes',
        'adonia.haze',
        'Fotovapor',
        'juicyjonesHQ',
        'happyvapergirl',
        '44inc',
        'nurblyfe',
        'plume_inati',
        'sunny_greg',
    ],
    // job 至多处理次数
    'job_deal_times' => 3,
    //评论列表是否显示更多 控制条数
    'see_more_nums' => 2,
    'white_ip' => [
        '192.168.10.1',
        '54.70.55.129', //beta
        '172.100.10.5', //test
        '172.100.10.10', //test
        '34.214.164.213', // pre
        '52.34.174.107', // ga
        '172.17.0.1',
        '220.130.60.194',
        '172.100.9.145',
        '172.100.9.163',
        '172.31.38.34',
        '172.31.41.82',
        '34.218.246.170',
        '172.31.6.131',
        '54.213.223.19',
        '172.31.32.212',
        '35.161.255.89',
        '35.161.39.122'
    ],
    'def_covername' => 'avatar/background_bg.jpg', //默认人物封面图片
    //礼物配置（2.3.0）
    'gifts' => [
        ['icon' =>'https://s3-us-west-2.amazonaws.com/images-omv/icon/comingsoon.png', 'name' => 'Coming soon', 'score' => '222'],
        ['icon' =>'https://s3-us-west-2.amazonaws.com/images-omv/icon/comingsoon.png', 'name' => 'Coming soon', 'score' => '99'],
        ['icon' =>'https://s3-us-west-2.amazonaws.com/images-omv/icon/comingsoon.png', 'name' => 'Coming soon', 'score' => '998'],
        ['icon' =>'https://s3-us-west-2.amazonaws.com/images-omv/icon/comingsoon.png', 'name' => 'Coming soon', 'score' => '50'],
        ['icon' =>'https://s3-us-west-2.amazonaws.com/images-omv/icon/comingsoon.png', 'name' => 'Coming soon', 'score' => '999'],
        ['icon' =>'https://s3-us-west-2.amazonaws.com/images-omv/icon/comingsoon.png', 'name' => 'Coming soon', 'score' => '998'],
    ],

    'level_icon' => [
        1 => 'https://s3-us-west-2.amazonaws.com/images-omv/icon/lv13x.png',
        2 => 'https://s3-us-west-2.amazonaws.com/images-omv/icon/lv23x.png',
        3 => 'https://s3-us-west-2.amazonaws.com/images-omv/icon/lv33x.png',
        4 => 'https://s3-us-west-2.amazonaws.com/images-omv/icon/lv43x.png',
        5 => 'https://s3-us-west-2.amazonaws.com/images-omv/icon/level5.png',
        6 => 'https://s3-us-west-2.amazonaws.com/images-omv/icon/level6.png',
        7 => 'https://s3-us-west-2.amazonaws.com/images-omv/icon/level7.png',
        8 => 'https://s3-us-west-2.amazonaws.com/images-omv/icon/level7.png',
        19 => 'https://s3-us-west-2.amazonaws.com/images-omv/icon/level7.png',
    ],
    'app_icon' => 'https://s3-us-west-2.amazonaws.com/images-omv/icon/app_icon.png',
    'charts_badge' => [
        0 => 'icon/others.png',
        1 => 'icon/ranking1.png',
        2 => 'icon/ranking2.png',
        3 => 'icon/ranking3.png',
    ],
    'sync_icon' => [
        [
            'name' => 'Facebook',
            'icon' => 'icon/facebook3x.png',
            'gray_icon' => 'icon/facebook_grey3x.png',
            'type' => 1,
        ],
        [
            'name' => 'Twitter',
            'icon' => 'icon/twitter3x.png',
            'gray_icon' => 'icon/twitter_grey3x.png',
            'type' => 2,
        ],
        [
            'name' => 'Vk',
            'icon' => 'icon/vk3x.png',
            'gray_icon' => 'icon/vk_grey3x.png',
            'type' => 3,
        ],
        [
            'name' => 'Instagram',
            'icon' => 'icon/instagram3x.png',
            'gray_icon' => 'icon/instagram_grey3x.png',
            'type' => 4,
        ]
    ],
    'challenge_expire' => 259200, //86400 *3
    'UCenter_url' => 'https://www.vaffle.com',
    'follow_switch' => false,
    'forbidden_ip' => [
        '98.182.23.41',
        '192.168.10.11',
        '46.216.194.88',
        '46.216.144.125',
        '46.216.172.65',
        '95.37.79.52'
    ],
    'forbidden_device' =>[
        'd84bce69b631342d5f22413626a045d4',
        'c9c4d667a92c406840e9f5c04400a042',
        '3dcee99257a9d31d3573b12761dc8e96',
        '4946FCF3C869251D6F25DFC7091D7B1A',
    ],
    'forbidden_memberid' => [16978, 16840],
    'forbidden_regname' => [
        'vaffle', 'vaffie', 'vaff1e', 'vaff\|e'
    ],
    'lang_conf'       => [1 => 'en', 2 => 'ru', 3 => 'ind', 4 => 'pl', 5=>'fr', 6=> 'pt', 7 => 'ja', 8=> 'el', 9=>'tr', 10=> 'it', 11=>'es', 12=>'ko', 13=> 'de'],
    'full_lang_conf'  => ['en' => 1, 'ru' => 2, 'ind' => 3, 'pl' => 4, 'fr' => 5, 'pt' => 6, 'ja' => 7, 'el' => 8,'tr'=>9, 'it'=> 10, 'es'=>11,'ko'=>12, 'de' => 13],
    'language_conf' => [
        'english' => 1,
        'russian' => 2,
        'indonesia' => 3,
        'polish' => 4,
        'french' => 5,
        'portuguese' => 6, //葡萄牙语
        'japanese' => 7, //日语
        'greek' => 8, //希腊语
        'turkish' => 9, //土耳其
        'italian' => 10, //意大利语
        'spanish' => 11, //西班牙语
        'korean' => 12, //西班牙语
        'german' => 13 //德语
    ],
    'translateDay' => [
        'ru' => 'день',
        'en' => 'day',
        'pt' => 'dia',
        'pl' => 'dzień',
        'fr' => 'journée',
        'es' => 'día',
        'ind' => 'hari',
        'tr' => 'gün',
        'ja' => '日',
        'it' => 'giorno',
        'el' => 'ημέρα',
        'ko' => '한국어',
        'de' => 'Tag',
    ],
    'postMQ' => false,
    //=========================== 2.5.0 ================
    'top_star_reward' => [
        ['title' => 'Top Star Reward no.1', 'score' => 120],
        ['title' => 'Top Star Reward no.2', 'score' => 100],
        ['title' => 'Top Star Reward no.3', 'score' => 80],
        ['title' => 'Top Star Reward (4-10)', 'score' => 50]
    ],
    'official_accid' => env('OFFICIAL_ACCID','test_1162'),
    //=========================== 2.5.0 ================
    //三日之星的推荐人列表
    'recommendation_top_stars' => [22607,33025,42873],


    //用户中心菜单开启状态, 顺序
    "member_center_menu" => [
        '1'=> "account",
        '4' => "membership",
        '20' => 'share invite code', //分享邀请码
        '21' => 'lottery', //抽奖
        "15" => "Brand Management",
        '18' => "Manage my store",
        '19' => "I am a store owner",
        '16' => "contribution",
        '17'=> "store and brand",
        '5'=> "device",
        '9'=> "tools",
        '14'=> "q/a",
        '2'=> "collection",
        '6'=> "share app",
        '12'=> "feedback",
        '13'=> "shipping address",
        '3'=> " drafts",
        '7'=> "settings"
    ],
    'forbidden_invitation_code' => ['985754299'], //禁用的邀请码集合
    'business_conf' => [
        1 => 'normal',
        2 => 'brand',
        3 => 'shop',
    ],
    'pushfanstimes' => 3,
    //3.2.0 用户中心菜单排序
    "member_center_menu_order" => [
        'account',
        'membership',
        'invitation_code',
        'bonus',
        'store_owner',
        'contribution',
        'store_brand',
        'device',
        'tools',
        'qa',
        'collection',
        'share_app',
        'feedback',
        'shipping_address',
        'drafts',
        'settings',
    ],
    //商业级用户 store 菜单排序
    'store_center_menu_order' => [
        'store_home',//'店铺主页',
        'invitation_code',
        'store_owner',//'申请成为新的店铺/品牌管理员',
        'store_brand',//'我关注的店铺和品牌',
        'cash',
        'brandtopic',//品牌下的话题
        'qa',
        'collection',
        'drafts',
        'settings',
    ],
    //商业级用户 brand 菜单排序
    'brand_center_menu_order' => [
        'brand_home',//'品牌主页',
        'invitation_code',
//        'posts',
        'store_owner',//'申请成为新的店铺/品牌管理员',
        'store_brand',//'我关注的店铺和品牌',
        'cash',
        'brandtopic',//品牌下的话题
        'qa',
        'collection',
        'drafts',
        'settings',
    ],
    'all_push_times' => 3,
    //签到 提示积分颜色
    "sign_score" => [
        "score_red" => "#FF0033"
    ],
    'filter_ios_status' => true, //是否过滤商业账户的post信息
    //签到 积分奖励默认图片
    'sign_default_score_icon' => "https://s3-us-west-2.amazonaws.com/images-omv/icon/jifen.png",

    //用户个人中心的默认选中 的选项卡
    //可配置项 ： information,  post, review, topic
    'default_tab_index' => 'information',

    //用户贡献值，的加成基数
    "contribution_base_num" => [
        "member" => [
            "post_num" => 1,
            "visit_num" => 10,
            "conversation_num" => 1
        ],
        "business" => [
            "post_num" => 1,
            "visit_num" => 20,
            "conversation_num" => 1
        ]
    ],

    //年度账单截止时间
    "memberYearTimeStamp" => "2019-02-28 00:00:00",

    //AES key
    "aes_key" => "Vaffle.key!@",
    'post_content_len_limit' => 2000,
    'device_login_user_limit' => 5, //每天单设备登录用户限制数量
    'device_register_limit' => 3, //每天单设备注册用户限制数量
    'daily_ip_register_limit' => 100,// 100, //单个ip注册用户数量限制
    'daily_user_pub_post_limit' => 100,//100, //单账户发帖数每日最多100个
    'daily_device_pub_post_limit' => 100,//100, //单设备发帖数每日最多100个
    'daily_user_pub_comment_limit' => 1000,//1000, //单账户发评论数每日最多200个
    'daily_device_pub_comment_limit' => 1000,//1000, //单设备发评论数每日最多200个

    //阅读数 达到多少 去同步hotnew 到mysql
    'space_hotnews_num' => 50,   //不可为0g
];
